perm filename TEST[E,ALS]5 blob sn#151486 filedate 1975-03-27 generic text, type C, neo UTF8
COMMENT ⊗   VALID 00012 PAGES
C REC  PAGE   DESCRIPTION
C00001 00001
C00002 00002	PAGE 2
C00003 00003	PAGE 123 LINE 1
C00007 00004	copy of page 13 of e.als
C00015 00005	abcdefooabcde
C00016 00006	ANOTHER PAGE
C00018 00007	PAGE4
C00019 00008	The NEXT PAGE
C00021 00009	.THIS IS A *** LINE TO STUDY JUST WITH PERIODS.  SOME MORE TEXT. 
C00025 00010	2 MARK PAGE 3
C00026 00011	INSERT NEW PAGE MARK ON THIS LINE
C00027 00012	1 MARK PAGE 4
C00030 ENDMK
C⊗;
PAGE 2
L2 
L3 WITHout
L4 WITH  and ABBBA
L5
L6 HAS  and some more
L7
L8 is even longer and has  in it.
L9
M1 
M2
M3 WITH 
M4
PAGE 123 LINE 1
LOAD %SE[CSP,SYS]%1<%2V%1B
a LINE WITH AN a BAZZ LINE WITH AN FZZ And more
a LINE WITH AN a.
a LINE WITH AN a.
ZZZZZZZZZZZZZZ
AAcdefg
L2 HAS THE WORD 3
L3 DOES NOT
L4 hAs THE WORD ***
	L5 DOES NOT
L6 hAs the WORD
 A6 hAs the WORD ZZZ And Also a (TAB) AND then Another zzz .and then some more text to make it rather long.
abcdefghijljlmnopqrstuvwxyz
L7 DOES NOT
L8 HaaaaaaaaS THE WORD zzz with more.
L9 DOES NOT
	L10 hAs the WORD *** AFTER AN INITIAL TAB
L11 DOES NOT
L12 hAs the WORD ***
 L13 DOES HAVE *** IN AN INTERIOR POSITION
L14 ALSO DOES NOT
L15 DOES NOT
e16 hAs the WORD ***
rsl DOES NOT
L18 hAs the WORD ***
LI9 DOES NOT
L20 hAs the WORD ***
L21 DOES NOT
L22 hAs the word ***
L23 DOES NOT
L24 hAs the word ***
L25 DOES NOT
L26 HAS THE WORD ***
L27 DOES NOT
L28 hAs the word ***
L29 DOES NOT
L2 HAS THE WORD ***
Abcdefg
L2 HAS THE WORD ***
L3 DOES NOT
L4 hAs the word ***
	L5 DOES NOT
L6 hAs the word
 A6 hAs the word *** And Also a (TAB) AND then Another 1234567890 .
ZZZT
L8 HAS THE WORD *** with more.
l9 DOES NOT
	L10 hAs the word *** AFTER AN INITIAL TAB
L11 DOES NOT
L12 hAs the word ***
 L13 DOES HAVE *** IN AN INTERIOR POSITION
L14 ALSO DOES NOT
L15 DOES NOT
L16 hAs the word ***
L17 DOES NOT
L18 hAs the word ***
LI9 DOES NOT
L20 hAs the word ***
L21 DOES NOT
L22 hAs the word ***
L23d *d ***
L23 DOES NOT
L24 hAs the word ***
L25 DOES NOT
L26 HAS THE WORD ***
L27 DOES NOT
L28 hAs the word ***
L29 DOES NOT
L2 HAS THE WORD ***
L3 DOES NOT
copy of page 13 of e.als
String substitution commands are initiated by first giving a normal FIND
command   but  using   the  special   string  terminating   character  \
(back-slash),  typed  with  both  the  <META>  and  the  <CONTROL>  keys
depressed. This  is then  followed by the  substitution string  which in
turn  is terminated  by either  a simple  carriage return (which  may be
preceeded by an argument, typed with control keys) or by <CONTROL><CR>. 
Note, many of the otherwise acceptable Find command terminations are not
meaningful with the substitution commands and are not allowed.

Sample commands.

   αβFSTRINGαβ\"String"αβ∞<CR>	Find all occurances of the string
                STRING,  whether typed  in  lower or  upper  case
                letters  and  replace  them  by the  substitution
                string as typed, that is, enclosed in  quotes and
                with the initial letter only  in CAPS.  Limit the
                search  to the current page starting at th cursor
                location. 

   αXFIND ←αβ\ <BACK ARROW> α<CR>	 Find the first occurance
                of the character  ←  whether on the  current page
                or a subsquent one and  replace it  by the string
                <BACK ARROW>  (including  the <  and >) and  with
                spaces   introduced   before  and   after   these
                characters.    Leave  the resulting  line  in the
                Line-Editor. 

The <CR> termination is the faster mode of operation in  that it makes a
minimum use  of the line editor  and it is recommended.   This mode does
have one defect in that the substitution is completed and is not subject
to the simple <ALT>  method of aborting a single line  correction.  When
the <CONTROL><CR>  termination is used the substitution  is made via the
Line-Editor and the results are left in the Line-Editor's buffer so that
the substitution may  still be aborted by the usual  <ALT> command. This
takes time and certain timing difficulties sometimes cause trouble. 

The usual  rules apply to the specification of the searched-for string. 
The substitution string may, however, contain certain delimiters (spaces
in particular) whether or not the search is for a delimited string and a
distinction is  made between  upper  and lower  case letters.  Only  the
searched-for letters without delimiters are replaced. To be specific, if
one  were to replace a  delimited string by a  null substitution string,
the two delimiters would remain in the corrected text. 

The substitution string is sticky, so that a substitution  command, when
successfully executed  for a single  occurance, may be repeated  for the
next  occurence by typing αβ\ only.  The typing of  a new string for the
searched-for  string  destroys  the  record  of   the  previously  saved
substitution string  and the entire request must  be retyped before this
command will be honored. 

A null substitution string may be  used but only after confirmation  has
been requested and received. The substitution will also be restricted to
a single occurance.  It may then be repeated as many times as desired by
the usual repeat command with the desired argument.    These precautions 
can be removed if users find them bothersome, but it was thought wise to
put them in at first.

Multi-page substitutions  are useful  but potentially  dangerous as  the
substitutions made on  any one page are, of course, written out onto the
disk file when ever a new page is entered. 

As noted earlier, typing αβ\ after a successful single substitution will
repeat the  substitution. This command  may be preceeded by  an argument
(with control  bits) and the substitution will be repeated the specified
number of times.  Should substitutions occur on more  than one page, all
substitutions on pages earlier than the last page will have been written
out. 

The use of the  command α\ rather  than αβ\ is also  allowed but is  not
recommended. This leaves  the altered line  in the line buffer  with the
possibility of an <ALT> abort. 

Sample repeat commands.

   αβ\		Repeat  the previously made substitution  at the next
                occurance of the searched-for string using the faster
                and  safer mode which  does not leave  the results in
                the Line-Editor buffer. 

   αβ6αβ\	Repeat the substitution for the next 6 occurances.

   α\		Repeat the substitution once but leave the results in
		the Line-Editor buffer.
abcdefooabcde
NEXT LINE
ANOTHER PAGE
XXXX
.THIS IS A TEST* LINE.
LAST LINE ENDED WITH 2 SPACES. 
.THIS IS A XXXX LINE TO STUDY JUST WITH PERIODS1.  SOME MORE TEXT. 
THIS IS A XXXX LINE TO STUDY JUST WITH PERIODS1. 
SOME MORE TEXT ON THE NEXT LINE. 
.THIS IS A XXXX LINE TO STUDY JUST WITH PERIODS1. 
LAST LINE ENDED WITH A SPACE. 
.THIS IS A XXXX LINE TO STUDY JUST WITH PERIODS1.  
LAST LINE ENDED WITH 2 SPACES. 
.THIS IS A XXXX LINE TO STUDY JUST WITH PERIODS12.  SOME MORE TEXT. 
.THIS IS A XXXX LINE TO STUDY JUST WITH PERIODS12. 
SOME MORE TEXT ON THE NEXT LINE. 
.THIS IS A XXXX LINE TO STUDY JUST WITH PERIODS123.  SOME E MORE TEXT. 
.THIS IS A XXXX LINE  TO STUDY JUST WITH PERIODS123. 
SOME MORE TEXT ON THE NEXT LINE. 
PAGE4
1 XXXX B XXXX C
2Y*
3 TESTING B
4Y*
5 XXXX B
6Y*
7 XXXX B
8Y*
9 XXXX B
0Y*
The NEXT PAGE
1 MARK PAGE 2
  Here is some text for use in trying to understand the JUST and JFILL
  commands.  2This is  line 2  which is  a bit  short. 3This  is line
  number 3 which has been padded out  to make it extra long so as  to
2 MARK PAGE 2
	SET*M DIR
	SET*M CREASW	;Don't want to be in CREATE mode for sure.
	TR* F,REDNLY	;Set for READWRITE
3 MARK PAGE 2
XCV
ASD
asddddd
4 MARK PAGE 2

HOMEF:	PUSHJ P,*SAVE	;Save a record of present conditions
	TLO F,*ATT
	PUSHJ P,WRPAGE	;Save page if not in READONLY mode 
5 MARK PAGE 2
;	TL*E F,ENTRD	;I BELIEVE THAT WE SHOULD CLOSE ALWAYS FOR SAFETY
	CLOSE DSKO	;Make sure file gets out savely
;	PUSHJ P,TMPWRT	;We may want to return
	PUSHJ P,FLSPAG	;This should flush page without bothering ATTACH buffer.
HERE are several lines to TEST INDENT which has a bug.
HERE are several lines to TEST INDENT which has a bug.
HERE are several lines to TEST INDENT which has a bug.

.THIS IS A TEST LINE TO STUDY JUST WITH PERIODS.  SOME MORE TEXT. 
.THIS IS A TEST LINE TO STUDY JUST WITH PERIODS. 
SOME MORE TEXT ON THE NEXT LINE. 
.THIS IS A TEST LINE TO STUDY JUST WITH PERIODS. 
LAST LINE ENDED WITH A SPACE. 
1 MARK PAGE 3 PAGE MOVING commands. 


 You are  now looking at a longer  page than before. Note two  things: 1
The top line contains asterisks, the page number and the file name.  2 A
bottom line contains dashes, where  formerly there were asterisks.   The
asterisks mean that you are seeing the page through a window starting at
the top of the page, while the dashes mean that there is yet more on the
page than that  shown.  On moving  the window down, dashes  will replace
the top asterisks.  If you can then see to the end of the page asterisks
will appear at the bottom. 
aaaa
 Note also that there are some  lines at the very bottom that echo  your
command or  acknowledge  its execution.   Watch  these  lines to  detect
errors. 

 Several  commands allow you to move the window  up and down on the page
and to move the CURRENT line marker (the arrow on the left) around.  
123456789 123456789 123456789 1
Testing the end of line period.
Testing the end of line period.
Testing the end of line period.

A practice line to TEST the problem of a period at the end of a line.
A  1practice line to  TEST the problem  of a period  at the  end of a
line.  A 12practice line to  TEST the problem of a period at  the end
of a line.  A 123practice line to TEST the problem of a period at the
end of a line.  

It is good practice to limit the page si*e to less than 150 lines.  This
eases the load on the editor and makes the directory of more use, if you
adopt the practice  of starting each  page with a  suitable comment.   E
keeps certain vital statistics packed into 9-bit  bytes and it gets into
trouble if there are more than 511 lines on any one page. 

 Note  that the window moved down on the page  only far enough to get to
the end of the page.  Had the page been longer, an entirely  new window-
ful might have appeared (except for the former last line which now would
become the first line). 

  The → which  had previously been  attached to the first  line of text,
moved to the  last line and stayed  with it as  the window moved.   This
arrow points to  a line called CURRENT.  This  line would be affected if
you were to do some line editing. More on this later. 
2 MARK PAGE 3
	SET*M RDONLY	;Set for read write
	SET*M CREASW	;Don't want to be in CREATE mode for sure.
	MOVE T,*DATAR	;Get return index value

INSERT NEW PAGE MARK ON THIS LINE
abcdefg
3 MARK PAGE 3
abcdefg
asddddd
4 MARK PAGE 3
1 MARK PAGE 4
   This is line number 1 and some filler for number one. 

   THIS IS LINE NUMBER 2 and some filler for number two. 
2 MARK PAGE 4

   THIS IS LINE NUMBER 3 and some filler for number three. 

  there  has to be some  carry-over to line number 5,   which in this
123456789012345678901234567890
3 MARK PAGE 4
  THIS IS LINE NUMBER 5 

  THIS IS LINE NUMBER 6 

  THIS IS LINE NUMBER 7 

  THIS IS LINE NUMBER 8 

FROM FILE J
FROM FILE J
FROM FILE J
FROM FILE J
FROM FILE J
TEST** THE LINE WITH THE ARROW TEST*
  This is some  text for use  in trying to  understand **0** 4 **0**  5
  **0** 6 **0** 7 **0** 8 **0  TEST 9 **0** 10 **0 TEST 11 **0 TEST 12 **0
  TEST 13 **0 TEST 14 **0 

  TEST 8 **0 TEST 9 **0** 10 **0 TEST  11 **0 **8 **0 TEST 9 **0** 10 **0  TEST
  11 **0**0** 10 **0 TEST 11 **0 TEST 12 **0  TEST* 11 *0** 2 **0** 3 **0**
  4 **0** 5 **0** 6 **0** 7 **0** 8 **0 TEST 9 **0** 10 **0** 11 **0 TEST
  **0 ** 13 **0 ** 14 **0 ASD ASDFGH 0123456789 0 ** 12  **0 ** 13
  **0   **   14  **0   ASD   ASDFGH   smith  ↓smith   αsmith   ABCDth
  AASDFGGGGGGGGGGGGGGGGGGGGGGGG    Asmith    ASD    λsmith    th    ABCDth
  AASDFGGGGGGGGGGGGGGGGGGG Asmith smith  smith ∞smith ⊂smith  ⊃smith
  12:34  ∩smith  ∪smith ∀smith  ∃smith  ⊗smith  ↔smith _smith  →smith
  ~smith ≠smith  ≤smith  ≥smith  smith asmith  ∨smith  !smith  #smith
  $smith  %smith &smith  'smith (smith  )smith  *smith +smith  ,smith
  -smith  'smith  (smith  )smith.smith  /smith  :smith ;smith  <smith
  =smith >smith  ?smith  @smith [smith  \smith ]smith  ↑smith  ←smith
  `smith {smith |smith |smith }smith }smith smith 

  ]smith ↑smith ←smith `smith  {smith |smith |smith }smith`smith {smith
  |smith |smithThis is the top of